CentOS 6
Sponsored Link

GlusterFS : Install
2016/08/07
 
Install GlusterFS to Configure Storage Cluster.
It is recommended to use partitions for GlusterFS volumes which are different from the / partition.
The environment on this example is set as that sdb1 is mounted on /glusterfs directory for GlusterFS Configuration on all Nodes.
[1] Install GlusterFS Server on all Nodes in Cluster.
[root@node01 ~]#
yum -y install centos-release-gluster38.noarch
[root@node01 ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-3.8.repo
# enable EPEL, too

[root@node01 ~]#
yum --enablerepo=centos-gluster38,epel -y install glusterfs-server
[root@node01 ~]#
/etc/rc.d/init.d/glusterd start

[root@node01 ~]#
chkconfig glusterd on

[2] If IPTables is running, allow GlusterFS ports.
For "-I INPUT 5" section below, Replace it to your own environment.
[root@dlp ~]#
iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 24007 -j ACCEPT

[root@dlp ~]#
iptables -I INPUT 6 -p tcp -m state --state NEW -m tcp --dport 49152 -j ACCEPT

[3]
Installing and Basic Settings of GlusterFS are OK. Refer to next section for settings of clustering.
 
Tweet